Remove outdated aliases
This commit is contained in:
parent
9567051afe
commit
b907885028
|
@ -1,39 +1,37 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
function fin {
|
||||||
|
find -iname "*$@*"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Mkdir should remind you to use git
|
||||||
|
alias mkdir="echo 'Maybe use git init if this is a new project' && mkdir"
|
||||||
|
|
||||||
# Use `al` to view and edit aliases
|
# Use `al` to view and edit aliases
|
||||||
alias al="vim ~/.shell_aliases && source ~/.shell_aliases && pushdot"
|
alias al="vim ~/.shell_aliases && source ~/.shell_aliases && pushdot"
|
||||||
|
|
||||||
# Sudo commands will turn red
|
# Sudo commands will turn red
|
||||||
alias sudo='echo -e "\e[1;31m" && sudo'
|
alias sudo='echo -e "\e[1;31m" && sudo'
|
||||||
|
|
||||||
# Edit current wisdom with `wim`
|
|
||||||
alias wim="vim ~/.wisdom"
|
|
||||||
|
|
||||||
alias clip="xclip -selection clipboard"
|
alias clip="xclip -selection clipboard"
|
||||||
|
|
||||||
alias vim="vim"
|
|
||||||
alias emacs="emacsclient -c -F \"'(fullscreen . fullboth)\" -nc -s instance1"
|
|
||||||
alias cim="vim"
|
alias cim="vim"
|
||||||
|
|
||||||
# Use `vimc` to edit ~/.vimrc
|
# Use `vimc` to edit ~/.vimrc
|
||||||
alias v="vim ~/.vimrc && pushdot"
|
|
||||||
alias vimc="vim ~/.vimrc && pushdot"
|
alias vimc="vim ~/.vimrc && pushdot"
|
||||||
alias cimc="vim ~/.vimrc && pushdot"
|
alias cimc="vim ~/.vimrc && pushdot"
|
||||||
|
|
||||||
|
# Resume session
|
||||||
alias vims="vim -S *.vims"
|
alias vims="vim -S *.vims"
|
||||||
|
|
||||||
# Use `zz` to edit ~/.zshrc
|
# Use `zz` to edit ~/.zshrc
|
||||||
alias zz='vim ~/.zshrc && source ~/.zshrc && pushdot'
|
alias zz='vim ~/.zshrc && source ~/.zshrc && pushdot'
|
||||||
alias termrc='vim ~/.config/xfce4/terminal/terminalrc'
|
alias termrc='vim ~/.config/xfce4/terminal/terminalrc'
|
||||||
|
|
||||||
# Use `bb` and `uu` to build and apply bpi kernel changes
|
|
||||||
alias bb="echo '\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n' && cd ~/Desktop/Griffin/bpi_build_scripts/ && sudo ./bbuild.sh 3 && cd -"
|
|
||||||
alias qbb="echo '\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n' && cd ~/Desktop/Griffin/bpi_build_scripts/ && sudo ./bbuild.sh 3 && cd -"
|
|
||||||
alias uu="sudo fsck.ext4 -p /dev/sde2; cd ~/Desktop/Griffin/bpi_build_scripts/ && sudo ./update_sd.sh /dev/sde && cd -"
|
|
||||||
|
|
||||||
# Use `grepr` for a recursive, case-insensitive, and filtered grep
|
# Use `grepr` for a recursive, case-insensitive, and filtered grep
|
||||||
# alias grepr="grep -RInsi --color=auto --exclude-dir=.git --exclude=tags"
|
# alias grepr="grep -RInsi --color=auto --exclude-dir=.git --exclude=tags"
|
||||||
# alias grepr='grep -RInsi --color=auto --exclude-dir=.git --exclude-dir=banana_pi_kernel --exclude-dir={bpi_build_scripts, storm_dox, sam_dox} --exclude=tags --exclude=\*.{ko, o}'
|
# alias grepr='grep -RInsi --color=auto --exclude-dir=.git --exclude-dir=banana_pi_kernel --exclude-dir={bpi_build_scripts, storm_dox, sam_dox} --exclude=tags --exclude=\*.{ko, o}'
|
||||||
alias grepr='grep -RInsi --color=auto --exclude-dir=.git --exclude-dir=banana_pi_kernel --exclude-dir=bpi_build_scripts --exclude=tags --exclude="*.ko"'
|
alias grepr='grep -RInsi --color=auto --exclude-dir=.git --exclude=tags'
|
||||||
|
|
||||||
alias apt="sudo apt"
|
alias apt="sudo apt"
|
||||||
alias apt-get="sudo apt-get"
|
alias apt-get="sudo apt-get"
|
||||||
|
@ -43,19 +41,12 @@ alias dpi="sudo dpkg -i"
|
||||||
alias pacman="sudo pacman"
|
alias pacman="sudo pacman"
|
||||||
alias systemctl="sudo systemctl"
|
alias systemctl="sudo systemctl"
|
||||||
|
|
||||||
# Use `fin` to search for files by name
|
|
||||||
alias fin="find -iname "
|
|
||||||
|
|
||||||
alias python="python3"
|
alias python="python3"
|
||||||
alias py="python3"
|
alias py="python3"
|
||||||
|
|
||||||
# Use `grubdate` to update grub
|
# Use `grubdate` to update grub
|
||||||
alias grubdate="sudo update-grub"
|
alias grubdate="sudo update-grub"
|
||||||
|
|
||||||
# Use `n` and `nn` to edit and view notes
|
|
||||||
alias n="vim ~/.notes && clear && cat ~/.notes && wis"
|
|
||||||
alias nn="cat ~/.notes && wis"
|
|
||||||
|
|
||||||
# Use `open` after `grepr` to vim a file with grep text matching $1
|
# Use `open` after `grepr` to vim a file with grep text matching $1
|
||||||
alias open=_open
|
alias open=_open
|
||||||
alias open2=_open2
|
alias open2=_open2
|
||||||
|
@ -72,5 +63,3 @@ alias ls='ls --color=auto -F -w 80'
|
||||||
alias du='du -sh'
|
alias du='du -sh'
|
||||||
|
|
||||||
alias tags='ctags -f newtags -R . && mv newtags tags'
|
alias tags='ctags -f newtags -R . && mv newtags tags'
|
||||||
|
|
||||||
alias newvpn='sudo openvpn --config ~/.ssh/sagev.ovpn'
|
|
||||||
|
|
Loading…
Reference in New Issue