diff options
author | Masfehico <clyhtsuriva@gmail.com> | 2020-08-30 22:50:01 +0200 |
---|---|---|
committer | Masfehico <clyhtsuriva@gmail.com> | 2020-08-30 22:50:01 +0200 |
commit | 9c38a4274e514d0daa5cf801763f5221bf47eb9d (patch) | |
tree | d75fedc595f6c6629833a03797358db9fbcf5656 | |
parent | 9016ff7bfff6a1205c5ff9b09edbfe46596ecfe1 (diff) |
bashrc and profile update
-rw-r--r-- | TMV/.bashrc | 10 | ||||
-rw-r--r-- | TMV/.config/aliasrc | 5 | ||||
-rw-r--r-- | TMV/.config/shortcutrc | 3 | ||||
-rw-r--r-- | TMV/.profile | 6 |
4 files changed, 11 insertions, 13 deletions
diff --git a/TMV/.bashrc b/TMV/.bashrc index 7503f93..ed47e62 100644 --- a/TMV/.bashrc +++ b/TMV/.bashrc @@ -4,15 +4,8 @@ HISTSIZE= HISTFILESIZE= # Infinite history. export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 0)\]\t \[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" -[ -f "$HOME/.config/shortcutrc" ] && source "$HOME/.config/shortcutrc" # Load shortcut aliases [ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc" -###PERSONAL EDITS -export WINDOWS='/mnt/windows' -export PATH=$PATH:/home/mas/py/ -export TERMINAL='xterm' -export BAT_THEME="Dracula" - # append to the history instead of overwriting (good for multiple connections) shopt -s histappend @@ -21,3 +14,6 @@ export HISTCONTROL=erasedups #reminder of what to do cat /home/mas/TODO.leny + +[ -f /etc/bash.command-not-found ] && . /etc/bash.command-not-found + diff --git a/TMV/.config/aliasrc b/TMV/.config/aliasrc index 1a29907..7407052 100644 --- a/TMV/.config/aliasrc +++ b/TMV/.config/aliasrc @@ -23,6 +23,9 @@ alias mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \ cp='cp -v' \ mv='mv -v' \ mkdir='mkdir -pv' \ - rmac='rmac.py' + rm='rm -v' \ + rmac='rmac.py' \ + vv='cd ~/Videos && ls -A *' \ + pp='cd ~/Pictures && ls -A *' command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present. diff --git a/TMV/.config/shortcutrc b/TMV/.config/shortcutrc deleted file mode 100644 index f2f2c4d..0000000 --- a/TMV/.config/shortcutrc +++ /dev/null @@ -1,3 +0,0 @@ -# vim: filetype=sh -pp="cd ~/Pictures && ls -a" \ -vv="cd ~/Videos && ls -a" \ diff --git a/TMV/.profile b/TMV/.profile index 55fd83d..633492b 100644 --- a/TMV/.profile +++ b/TMV/.profile @@ -3,7 +3,7 @@ # Profile file. Runs on login. Environmental variables are set here. # Adds `~/.local/bin` to $PATH -export PATH="$PATH:$HOME/.local/bin/" +export PATH="$PATH:$HOME/.local/bin/:$HOME/py/" # Default programs: export EDITOR="nvim" @@ -27,6 +27,9 @@ export LESS_TERMCAP_se="$(printf '%b' '[0m')" export LESS_TERMCAP_us="$(printf '%b' '[1;32m')" export LESS_TERMCAP_ue="$(printf '%b' '[0m')" +export WINDOWS='/mnt/windows' +export BAT_THEME="Dracula" + [ ! -f ~/.config/shortcutrc ] && shortcuts >/dev/null 2>&1 echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc" @@ -34,5 +37,4 @@ echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc # Start graphical server if i3 not already running. [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec startx -#rm ~/.config/ibus/rime/build/default.yaml; ibus-daemon -drx |