Add aliases and EDITOR condition

This commit is contained in:
flyingscorpio@arch-desktop 2020-06-27 17:44:49 +02:00
parent c7b6023a44
commit fa5b7afba2
2 changed files with 13 additions and 5 deletions

View file

@ -1,15 +1,21 @@
alias lime2connect='ssh flyingscorpio@2px.info.tm'
alias fish='fish ~/.config/fish/functions/my_aliases.fish && fish'
alias rm='rm -I --preserve-root'
alias ll='ls -lh'
alias lla='ls -lArth'
alias la='ls -A'
alias l='ls -CF'
alias ccat='highlight --out-format=ansi' # Color cat with syntax highlighting
alias vi='vim'
alias netstat='ss'
alias pdf='zathura'
alias ccat='highlight --out-format=ansi' # color cat with syntax highlighting
alias netstat='ss' # for compatibility
if [ -x /bin/vim ] && [ ! -x /bin/vi ]; then
alias vi='vim'
fi
# For common errors
alias :q=' exit'
alias :x=' exit'
alias cd..='cd ..'

View file

@ -1,9 +1,11 @@
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
export EDITOR="/bin/vim"
if [ -x /bin/vim ]; then
export EDITOR="/bin/vim"
fi
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$PATH:$HOME/.local/bin"