From a42df546ce34429759a20bc2c4c240de045dbd0a Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Mon, 2 Dec 2019 17:51:04 +0530 Subject: using stow --- zsh/.zshrc | 144 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 zsh/.zshrc (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..6686e55 --- /dev/null +++ b/zsh/.zshrc @@ -0,0 +1,144 @@ +# If you come from bash you might have to change your $PATH. +# export PATH=$HOME/bin:/usr/local/bin:$PATH + +# Path to your oh-my-zsh installation. +export ZSH="/home/ssaini/.oh-my-zsh" +export VISUAL=nvim +export EDITOR="$VISUAL" +export BROWSER=/opt/brave-v1.3.43-linux-x64/brave +export XDG_CURRENT_DESKTOP=bspwm + +# 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/robbyrussell/oh-my-zsh/wiki/Themes +ZSH_THEME="gianu" +SPACESHIP_CHAR_SYMBOL=" " +SPACESHIP_PROMPT_ADD_NEWLINE=false + +# Set list of themes to pick from when loading at random +# Setting this variable when ZSH_THEME=random will cause zsh to load +# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ +# If set to an empty array, this variable will have no effect. +# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) + +# 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 ~/.oh-my-zsh/plugins/* +# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ +# Example format: plugins=(rails git textmate ruby lighthouse) +# Add wisely, as too many plugins slow down shell startup. +plugins=(git sudo extract python common-aliases) + +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' +# else +# export EDITOR='mvim' +# 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. +# For a full list of active aliases, run `alias`. +# +# Example aliases +# alias zshconfig="mate ~/.zshrc" +# alias ohmyzsh="mate ~/.oh-my-zsh" +alias key="vim $HOME/.config/sxhkd/sxhkdrc" +alias wm="vim ~/.config/bspwm/bspwmrc" +alias f="ranger" +alias xi="sudo xbps-install " +alias xr="sudo xbps-remove -R " +alias xu="sudo xbps-install -Syu " +alias xo="sudo xbps-remove -o" +alias xob="sudo xbps-remove -O" +alias bb="cat /proc/acpi/bbswitch" +alias ncu="sudo nmcli connection up " +alias ncd="sudo nmcli connection down " +alias pg="ping google.com" +alias py="/bin/python" +alias pubip="curl ipinfo.io/ip" +alias k="pkill " +alias m="cmus" +alias vimrc="vim $HOME/.config/nvim/init.vim" +alias poly="vim $HOME/.config/polybar/config" +alias todo="cat ~/Projects/todo" +alias z="zathura" +alias v="/usr/bin/nvim" +alias site="cd ~/Projects/site/" +alias mt="udisksctl mount -b /dev/sda5" +alias sudo="sudo " + +source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + + +# Import colorscheme from 'wal' asynchronously +# & # Run the process in the background. +# ( ) # Hide shell job control messages. +#(cat ~/.cache/wal/sequences &) + +# Alternative (blocks terminal for 0-3ms) +#cat ~/.cache/wal/sequences + +# To add support for TTYs this line can be optionally added. +#source ~/.cache/wal/colors-tty.sh -- cgit v1.2.3