summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-05-13 13:27:30 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-05-13 13:27:30 +0300
commit7fe3051733dfa0884ed6893e9c9835402c0e6680 (patch)
treeb48d0e30bd40d0ac544d1f1920415f4bc390f3e8 /.zshrc
parentcc56c4ee72717bc02a26e9f4a5d151d41faab53d (diff)
downloaddotfiles-7fe3051733dfa0884ed6893e9c9835402c0e6680.tar
dotfiles-7fe3051733dfa0884ed6893e9c9835402c0e6680.tar.gz
dotfiles-7fe3051733dfa0884ed6893e9c9835402c0e6680.zip
Added bindings and improved comments
Diffstat (limited to '.zshrc')
-rw-r--r--[-rwxr-xr-x].zshrc83
1 files changed, 81 insertions, 2 deletions
diff --git a/.zshrc b/.zshrc
index ffaa69e..74b359d 100755..100644
--- a/.zshrc
+++ b/.zshrc
@@ -15,9 +15,61 @@
export ZSH="/home/kamen/.oh-my-zsh"
+# Set name of the theme to load --- if set to "random", it will
+# load a random theme each time oh-my-zsh is loaded, in which case,
+# to know which specific one was loaded, run: echo $RANDOM_THEME
+# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
+
ZSH_THEME="gruvbox"
SOLARIZED_THEME="dark"
+# Uncomment the following line to use case-sensitive completion.
+# CASE_SENSITIVE="true"
+
+# Uncomment the following line to use hyphen-insensitive completion.
+# Case-sensitive completion must be off. _ and - will be interchangeable.
+# HYPHEN_INSENSITIVE="true"
+
+# Uncomment the following line to disable bi-weekly auto-update checks.
+# DISABLE_AUTO_UPDATE="true"
+
+# Uncomment the following line to automatically update without prompting.
+# DISABLE_UPDATE_PROMPT="true"
+
+# Uncomment the following line to change how often to auto-update (in days).
+# export UPDATE_ZSH_DAYS=13
+
+# Uncomment the following line if pasting URLs and other text is messed up.
+# DISABLE_MAGIC_FUNCTIONS="true"
+
+# Uncomment the following line to disable colors in ls.
+# DISABLE_LS_COLORS="true"
+
+# Uncomment the following line to disable auto-setting terminal title.
+# DISABLE_AUTO_TITLE="true"
+
+# Uncomment the following line to enable command auto-correction.
+# ENABLE_CORRECTION="true"
+
+# Uncomment the following line to display red dots whilst waiting for completion.
+# COMPLETION_WAITING_DOTS="true"
+
+# Uncomment the following line if you want to disable marking untracked files
+# under VCS as dirty. This makes repository status check for large repositories
+# much, much faster.
+# DISABLE_UNTRACKED_FILES_DIRTY="true"
+
+# Uncomment the following line if you want to change the command execution time
+# stamp shown in the history command output.
+# You can set one of the optional three formats:
+# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
+# or set a custom format using the strftime function format specifications,
+# see 'man strftime' for details.
+# HIST_STAMPS="mm/dd/yyyy"
+
+# Would you like to use another custom folder than $ZSH/custom?
+# ZSH_CUSTOM=/path/to/new-custom-folder
+
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
@@ -29,6 +81,11 @@ source $ZSH/oh-my-zsh.sh
# User configuration
+# export MANPATH="/usr/local/man:$MANPATH"
+
+# You may need to manually set your language environment
+# export LANG=en_US.UTF-8
+
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
@@ -36,6 +93,14 @@ else
export EDITOR='vim'
fi
+# Compilation flags
+# export ARCHFLAGS="-arch x86_64"
+
+# Set personal aliases, overriding those provided by oh-my-zsh libs,
+# plugins, and themes. Aliases can be placed here, though oh-my-zsh
+# users are encouraged to define aliases within the ZSH_CUSTOM folder.
+
+
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
@@ -203,11 +268,15 @@ alias ydlba="youtube-dl --audio-format best -x"
alias sdi="sudo dnf install -y"
alias sdr="sudo dnf remove -y"
alias sda="sudo dnf autoremove -y"
-alias sdu="sudo dnf upgrade -y && sudo dnf autoremove -y && sudo youtube-dl --update && wget -O - https://raw.githubusercontent.com/laurent22/joplin/master/Joplin_install_and_update.sh | bash && needs-restarting -r"
+alias sdu="sudo dnf upgrade -y && bash -c 'sudo dnf remove -y dotnet* && sudo dnf install -y compat-openssl10 && sudo dnf install -y dotnet-runtime-deps-5.0 dotnet-runtime-5.0 dotnet-sdk-5.0.x86_64 --repo packages-microsoft-com-prod' && sudo dnf autoremove -y && sudo youtube-dl --update && wget -O - https://raw.githubusercontent.com/laurent22/joplin/master/Joplin_install_and_update.sh | bash && needs-restarting -r"
alias sds="sudo dnf search"
alias sdudiscord="wget -O discord.tar.gz \"https://discord.com/api/download?platform=linux&format=tar.gz\" && tar -xzf discord.tar.gz && sudo rm -rf /opt/Discord && sudo mv Discord /opt"
+alias sdce="sudo dnf copr enable -y"
+alias sdcei='f() { sudo dnf copr enable -y $1 && sudo dnf install -y $2; unset -f f }; f'
+alias sdcs="sudo dnf copr search"
+
# apt aliases
# alias sasy="sudo apt install -y"
@@ -234,4 +303,14 @@ alias x="exit"
if [[ -x "$(command -v vimx)" ]]; then alias vim='vimx'; fi
alias v="vim"
-alias cdp="cd ~/Programming/GitHub-repos/"
+alias cdg="cd ~/Programming/GitHub-repos/"
+alias cdl="cd ~/Programming/GitLab-repos/"
+alias cds="cd ~/Programming/source/"
+
+bindkey '^H' backward-kill-word
+
+
+if [ -e /home/kamen/.nix-profile/etc/profile.d/nix.sh ]; then . /home/kamen/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
+. ~/.nix-profile/etc/profile.d/nix.sh
+eval "$(direnv hook zsh)"
+[ -f "/home/kamen/.ghcup/env" ] && source "/home/kamen/.ghcup/env" # ghcup-env