Created
December 19, 2022 05:56
-
-
Save surajRathi/56b791996cbdd66cce4144170fd932b1 to your computer and use it in GitHub Desktop.
Ubuntu nspawn Container's Shell config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HISTSIZE=10000000 | |
SAVEHIST=10000000 | |
# setopt BANG_HIST # Treat the '!' character specially during expansion. | |
setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format. | |
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits. | |
setopt SHARE_HISTORY # Share history between all sessions. | |
setopt HIST_EXPIRE_DUPS_FIRST # Expire duplicate entries first when trimming history. | |
setopt HIST_IGNORE_DUPS # Don't record an entry that was just recorded again. | |
setopt HIST_IGNORE_ALL_DUPS # Delete old recorded entry if new entry is a duplicate. | |
setopt HIST_FIND_NO_DUPS # Do not display a line previously found. | |
setopt HIST_IGNORE_SPACE # Don't record an entry starting with a space. | |
setopt HIST_SAVE_NO_DUPS # Don't write duplicate entries in the history file. | |
setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording entry. | |
# setopt HIST_VERIFY # Don't execute immediately upon history expansion. | |
# setopt HIST_BEEP # Beep when accessing nonexistent history. | |
ulimit -Hn 524288 | |
export DISPLAY=:0 | |
export GPG_TTY=$(tty) | |
export TERM=xterm-256color | |
export _JAVA_AWT_WM_NONREPARENTING=1 | |
export PATH="${PATH}:/home/suraj/.local/bin" | |
fk () { $@ 2>&1 1>/dev/null &!} # Silent Fork off the process | |
alias webstorm='java17 webstorm 2>&- >&- &!' | |
alias clion='java17 clion 2>&- >&- &!' | |
alias pycharm='java17 pycharm 2>&- >&- &!' | |
ROS_VER=1 | |
if [[ ROS_VER -eq "1" ]] | |
then | |
source /opt/ros/noetic/setup.zsh | |
# source /opt/ros/noetic/share/rosbash/roszsh # This doesnt work with the grml zsh config | |
# autoload bashcompinit | |
# bashcompinit | |
# source /opt/ros/noetic/share/rosbash/rosbash | |
export ROS_WS_DIR=$HOME/ws | |
cd $ROS_WS_DIR | |
source ./cc_setup.zsh | |
echo "Initialized ROS Noetic..." | |
else | |
source /opt/ros/foxy/setup.zsh | |
source /usr/share/colcon_cd/function/colcon_cd.sh | |
export _colcon_cd_root=~/ws | |
export ROS_DOMAIN_ID=17 | |
# [[ -a /usr/share/colcon_argcomplete/hook/colcon-argcomplete.zsh ]] && source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.zsh || echo "Can't find colcon argcomplete script, see https://colcon.readthedocs.io/en/released/user/installation.html#enable-completion" | |
cd ~/ws | |
[[ -a ./install/setup.zsh ]] && source ./install/setup.zsh | |
alias cb="colcon build --symlink-install" | |
alias cbb="cb --packages-up-to" | |
# alias rviz="ros2 run rviz2 rviz2 >/dev/null 2&>1" | |
source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.zsh | |
echo "Initialized ROS2 Foxy" | |
fi | |
export FZF_DEFAULT_OPTS="--reverse" | |
source ~/.local/share/fzf-tab/fzf-tab.plugin.zsh # https://github.com/Aloxaf/fzf-tab | |
source /usr/share/doc/fzf/examples/key-bindings.zsh | |
#source /usr/share/doc/fzf/examples/completion.zsh # Breaks ROS completion | |
#source /home/suraj/.local/share/zsh/fzf-zsh-completion.sh # Breaks ROS Completion | |
source ~/.local/share/zsh-autosuggestions/zsh-autosuggestions.zsh # https://github.com/zsh-users/zsh-autosuggestions | |
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/sh | |
export JAVA_HOME=/usr/lib/jvm/jdk-17/ | |
export PATH=$PATH:$JAVA_HOME/bin | |
"$@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment